package org.example.adapter.classadapter;

import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;


/**
 * @author
 * @description
 */
@SpringBootTest
public class Client {

    @Autowired
    private Phone phone;

    @Autowired
    private VoltageAdapter  voltageAdapter;

    @Test
    public void test() {
        System.out.println("==========使用类适配器模式=========");
        phone.charging(voltageAdapter);
    }
}
